package com.woniu.service.impl;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.woniu.adapter.ApplicationAdapter;
import com.woniu.outlet.po.ApplicationDetail;
import com.woniu.service.ApplicationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

@Service
public class ApplicationServiceImpl implements ApplicationService{
    @Autowired
    private ApplicationAdapter applicationAdapter;


    @Override
    public List<ApplicationDetail> getApplicationDetailList () throws JsonProcessingException {
        return applicationAdapter.getApplicationDetailList();

    }

    @Override
    public List<ApplicationDetail> getApplicationDetail (Integer metId) {
        return applicationAdapter.getApplicationDetailByMatId(metId);
    }
}
